package com.wing.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.system.model.entity.DingTalkAttendance;
import com.wing.system.model.response.DingTalkAttendanceVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 钉钉考勤-Dao
 *
 * @author
 */
@Mapper
public interface DingTalkAttendanceDao extends BaseMapper<DingTalkAttendance> {

    int deleteByDateRange(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("userIds") List<String> userIds);

    List<DingTalkAttendanceVO> selDingTalkAttendanceInfo(@Param("page") Page<DingTalkAttendanceVO> pg, @Param("map") Map map);

    List<DingTalkAttendanceVO> selDingTalkAttendancePaiBanInfo(@Param("page") Page<DingTalkAttendanceVO> pg, @Param("map") Map map);

    List<DingTalkAttendanceVO> selDingTalkAttendanceByDate(@Param("groupId") String groupId, @Param("workDate") String workDate);

}
